package com.chhuang.system.bean;


import com.chhuang.core.bean.QueryBean;
import com.chhuang.system.po.ChRole;

/**
* ChRole QueryBean
* @author Mysql2MQDS
* @date Tue Jul 21 10:30:16 CST 2015
*/
public class ChRoleQueryBean extends QueryBean<ChRole>{
	/**
	 * 
	 */
	private static final long serialVersionUID = 4655732593371600391L;
	private String roleId;
	public String getRoleId(){
		return roleId;
	}
	public void setRoleId(String roleId){
		this.roleId=roleId;
	}
	private String roleName;
	public String getRoleName(){
		return roleName;
	}
	public void setRoleName(String roleName){
		this.roleName=roleName;
	}
	private Integer roleOrder;
	public Integer getRoleOrder(){
		return roleOrder;
	}
	public void setRoleOrder(Integer roleOrder){
		this.roleOrder=roleOrder;
	}
	
	public String fieldTransforColumn(String field){
		if("roleId".equals(field)){
			return "role_id";
		}else if("roleName".equals(field)){
			return "role_name";
		}else if("roleOrder".equals(field)){
			return "role_order";
		}else{
			return field;
		}
	}
	
	public String columnTransforField(String column){
		if("role_id".equals(column)){
			return "roleId";
		}else if("role_name".equals(column)){
			return "roleName";
		}else if("role_order".equals(column)){
			return "roleOrder";
		}else{
			return column;
		}
	}
}